﻿@using QLMB.Models
<fieldset>
    <legend>Thông tin khách hàng</legend>
    <div class="tbcell" style="float: left; position: relative; width: 20%;">
        Họ tên:<br/>
        Loại dịch vụ di: <br/>
        @if (ViewBag.Check == 2)
        {
            <label>Loại dịch vụ về: </label><br/>
        }
    </div>
    <div class="tbcell" style="float: left; position: relative; width: 20%;">
        @ViewBag.VeCB.HANHKHACH.Ho @ViewBag.VeCB.HANHKHACH.Ten <br/>
        @ViewBag.LoaiDVDi<br/>
        @if (ViewBag.Check == 2)
        {
            @ViewBag.LoaiDVVe <br/>
        }
    </div>
</fieldset>
<fieldset>
    <legend>Thông tin chi tiết</legend>
    <div style = "float: left; width: 30%; border: 1px solid blue; -webkit-border-radius: 10px; padding: 5px; margin: 5px;">
        <u>Thông tin chuyến bay</u> <br/>
        <br/>
        <div id="luotdi">
            <i>Lượt đi:</i>
            <div class="tbrow" style="float: left; position: relative; width: 100%;">
                <div class="tbhead" style="float: left; position: relative; width: 33%">
                    Khởi hành
                </div>
                <div class="tbhead" style="float: left; position: relative; width: 33%">
                    Đến
                </div>
                <div class="tbhead" style="float: left; position: relative; width: 34%">
                    Giá vé
                </div>
            </div>

            <div class="tbrow" style="float: left; position: relative; width:100%;">
                <div class="tbcell" style="float: left; position: relative; width: 33%">
                    <label id="NgayDi">@ViewBag.NgayDi</label><br/>
                    <label id="GioDi">@ViewBag.GioDi</label><br/>
                    <label id="DiemDi">@ViewBag.DiemDi</label> 
                </div>
                <div class="tbcell" style="float: left; position: relative; width: 33%">
                    <label id="NgayDen">@ViewBag.NgayDen</label><br/>
                    <label id="GioDen">@ViewBag.GioDen</label><br/>
                    <label id="DiemDen">@ViewBag.DiemDen</label>
                </div>
                <div class="tbcell" style="float: left; position: relative; width: 34%">
                    <label id="TongTien">@string.Format("{0:0,0}",ViewBag.TongTien)</label>
                </div>
            </div>
        </div>
        @if (ViewBag.Check == 2)
        {
            <div id="luotve">
                <hr/>
                <i>Lượt về</i>
                <div class="tbrow" style="float: left; position: relative; width: 100%;">
                    <div class="tbhead" style="float: left; position: relative; width: 33%">
                        Khởi hành
                    </div>
                    <div class="tbhead" style="float: left; position: relative; width: 33%">
                        Đến
                    </div>
                    <div class="tbhead" style="float: left; position: relative; width: 34%">
                        Giá vé
                    </div>
                </div>
                <div class="tbrow" style="float: left; position: relative; width: 100%;">
                    <div class="tbcell" style="float: left; position: relative; width: 33%">
                        <label id="NgayDi2">@ViewBag.NgayDi2</label><br/>
                        <label id="GioDi2">@ViewBag.GioDi2</label><br/>
                        <label id="DiemDi2">@ViewBag.DiemDen</label> 
                    </div>
                    <div class="tbcell" style="float: left; position: relative; width: 33%">
                        <label id="NgayDen2">@ViewBag.NgayDen2</label><br/>
                        <label id="GioDen2">@ViewBag.GioDen2</label><br/>
                        <label id="DiemDen2">@ViewBag.DiemDi</label>
                    </div>
                    <div class="tbcell" style="float: left; position: relative; width: 34%">
                        <label id="TongTien2">@string.Format("{0:0,0}",ViewBag.TongTien)</label>
                    </div>
                </div>  
            </div>
        }
        <input type ="submit" name="action:ChangeDate" value="Thay đổi ngày bay" />
    </div>
    <div style = "float: left; width: 30%; border: 1px solid blue; -webkit-border-radius: 10px; padding: 5px; margin: 5px;">
        <u>Thông tin các chuyến bay cùng ngày</u><br /><br/>
        <table>
        <tr>
            <th>Nơi đi:</th>
            <th>Nơi đến:</th>
            <th>Giá vé:</th>
        </tr>
        @foreach (CHUYENBAY chuyenbay in ViewBag.DSCB)
        {
            <tr>
                <td style="width: 32%;">@chuyenbay.DUONGBAY.SANBAY.THANHPHO.TenTP</td>
                <td style="width: 32%;">@chuyenbay.DUONGBAY.SANBAY1.THANHPHO.TenTP</td>
                @{ string st = string.Format("{0:0,0}", chuyenbay.DUONGBAY.GiaCoBan - chuyenbay.DUONGBAY.GiaCoBan * chuyenbay.KhuyenMai / 100); }
                <td style="width: 32%;">@st</td>
                <td>@Html.RadioButton("MaCB",chuyenbay.MaCB)</td>
            </tr>
        }
        </table>
        <br/>
        <input type="submit" name="action:ChangeRoad" value="Thay đổi hành trình"/>
    </div>
    <div style = "float: left; width: 30%; border: 1px solid blue; -webkit-border-radius: 10px; padding: 5px; margin:5px;">
        Thông tin hủy vé
    </div>
</fieldset>